package com.File_io_.homework;

import java.io.BufferedWriter;
import java.io.File;
import java.io.FileWriter;

/**
 * @author 宋鑫宇
 * @version 1.0
 */
public class Homework01 {
    public static void main(String[] args) throws Exception {
        File file = new File("D:\\idea_WorkSpace\\myjava\\myjava\\src\\com\\File_io_\\homework\\mytemp");
        if (!file.exists()) {
            file.mkdirs();
        }
        BufferedWriter bufferedWriter = new BufferedWriter(new FileWriter(file + "\\hello.txt"));
        bufferedWriter.write("hello,world~");
        bufferedWriter.newLine();
        bufferedWriter.close();

    }
}
